package com.yzh.springboot_rbac.mapper;

import com.yzh.springboot_rbac.entity.Role;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RoleMapper {
    /*此接口对角色表进行操作*/
    /*1.新增角色*/
    int insertRole(Role role);

    /*2.查询角色通过条件*/
    List<Role> selectRoleByCondition(Role role);

    /*3.修改角色*/
    int updateRole(Role role);

    /*4.删除角色*/
    int deleteRole(Role role);

}
